package tmproject.hlhj.fhp.tmvote.customView

import android.content.Context
import android.util.AttributeSet
import android.view.MotionEvent
import com.liaoinstan.springview.widget.SpringView
import tmproject.hlhj.fhp.tmvote.log

/**
 * Created by Never Fear   on 2018\8\17 0017.
Never More....
 */
class MySpring:SpringView {
    constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs)

    override fun onTouchEvent(event: MotionEvent?): Boolean {
        log("fhpp","SpringView—OnTouchEvent${event?.action}是否消耗${super.onTouchEvent(event)}")

        return super.onTouchEvent(event)

    }

    override fun dispatchTouchEvent(event: MotionEvent?): Boolean {
        log("fhpp","SpringView—Dispatch${event?.action}是否拦截${super.dispatchTouchEvent(event)}")
        return super.dispatchTouchEvent(event)
    }
}